<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.3">
  <hashTree>
    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="${name}" enabled="true">
      <stringProp name="TestPlan.comments">${comments!}</stringProp>
      <boolProp name="TestPlan.functional_mode">${functional_mode!'false'}</boolProp>
      <boolProp name="TestPlan.tearDown_on_shutdown">${tearDown_on_shutdown!'true'}</boolProp>
      <boolProp name="TestPlan.serialize_threadgroups">${serialize_threadgroups!'false'}</boolProp>
      <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
        <collectionProp name="Arguments.arguments"/>
      </elementProp>
      <stringProp name="TestPlan.user_define_classpath"></stringProp>
    </TestPlan>
    <hashTree>

      <ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="${aggregateReport.name!'聚合报告'}" enabled="true">
        <boolProp name="ResultCollector.error_logging">${aggregateReport.error_logging!'false'}</boolProp>
        <objProp>
          <name>saveConfig</name>
          <value class="SampleSaveConfiguration">
            <time>true</time>
            <latency>true</latency>
            <timestamp>true</timestamp>
            <success>true</success>
            <label>true</label>
            <code>true</code>
            <message>true</message>
            <threadName>true</threadName>
            <dataType>true</dataType>
            <encoding>false</encoding>
            <assertions>true</assertions>
            <subresults>true</subresults>
            <responseData>false</responseData>
            <samplerData>false</samplerData>
            <xml>false</xml>
            <fieldNames>true</fieldNames>
            <responseHeaders>false</responseHeaders>
            <requestHeaders>false</requestHeaders>
            <responseDataOnError>false</responseDataOnError>
            <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
            <assertionsResultsToSave>0</assertionsResultsToSave>
            <bytes>true</bytes>
            <sentBytes>true</sentBytes>
            <url>true</url>
            <threadCounts>true</threadCounts>
            <idleTime>true</idleTime>
            <connectTime>true</connectTime>
          </value>
        </objProp>
        <stringProp name="filename"></stringProp>
      </ResultCollector>
      <hashTree/>

      <#list threadGroups as threadGroup>
      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="${threadGroup.name}" enabled="true">
        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
          <boolProp name="LoopController.continue_forever">false</boolProp>
          <stringProp name="LoopController.loops">${threadGroup.JParamLoops}</stringProp>
        </elementProp>
        <stringProp name="ThreadGroup.num_threads">${threadGroup.JParamThreads}</stringProp>
        <stringProp name="ThreadGroup.ramp_time">${threadGroup.ramp_time!'1'}</stringProp>
        <boolProp name="ThreadGroup.scheduler">false</boolProp>
        <stringProp name="ThreadGroup.duration"></stringProp>
        <stringProp name="ThreadGroup.delay"></stringProp>
        <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
      </ThreadGroup>
      <hashTree>
        <#list threadGroup.httpSamplers as httpSampler>
        <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="${httpSampler.name}" enabled="true">
          <#if httpSampler.body!''?trim?length gt 1>
            <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
            <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
              <collectionProp name="Arguments.arguments">
                <elementProp name="" elementType="HTTPArgument">
                  <boolProp name="HTTPArgument.always_encode">${httpSampler.always_encode!'false'}</boolProp>
                  <stringProp name="Argument.value">${httpSampler.body!'{}'}</stringProp>
                  <stringProp name="Argument.metadata">=</stringProp>
                </elementProp>
              </collectionProp>
            </elementProp>
          <#else>
            <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
              <collectionProp name="Arguments.arguments"/>
            </elementProp>
          </#if>
          <stringProp name="HTTPSampler.domain">${httpSampler.domain}</stringProp>
          <stringProp name="HTTPSampler.port">${httpSampler.port!80}</stringProp>
          <stringProp name="HTTPSampler.protocol">${httpSampler.protocol!'http'}</stringProp>
          <stringProp name="HTTPSampler.contentEncoding">${httpSampler.contentEncoding!'UTF-8'}</stringProp>
          <stringProp name="HTTPSampler.path">${httpSampler.path!}</stringProp>
          <stringProp name="HTTPSampler.method">${httpSampler.method!'GET'}</stringProp>
          <boolProp name="HTTPSampler.follow_redirects">${httpSampler.follow_redirects!'true'}</boolProp>
          <boolProp name="HTTPSampler.auto_redirects">${httpSampler.auto_redirects!'false'}</boolProp>
          <boolProp name="HTTPSampler.use_keepalive">${httpSampler.use_keepalive!'true'}</boolProp>
          <boolProp name="HTTPSampler.DO_MULTIPART_POST">${httpSampler.DO_MULTIPART_POST!'false'}</boolProp>
          <stringProp name="HTTPSampler.embedded_url_re">${httpSampler.embedded_url_re!}</stringProp>
          <stringProp name="HTTPSampler.connect_timeout">${httpSampler.connect_timeout!}</stringProp>
          <stringProp name="HTTPSampler.response_timeout">${httpSampler.response_timeout!}</stringProp>
        </HTTPSamplerProxy>
        <hashTree>
          <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="${httpSampler.name}_Header" enabled="true">
            <collectionProp name="HeaderManager.headers">
              <#list httpSampler.headers?keys as key>
                <elementProp name="" elementType="Header">
                  <stringProp name="Header.name">${key}</stringProp>
                  <stringProp name="Header.value">${httpSampler.headers[key]}</stringProp>
                </elementProp>
              </#list>
            </collectionProp>
          </HeaderManager>
          <hashTree/>
        </hashTree>
        </#list>
      </hashTree>
      </#list>
    </hashTree>
  </hashTree>
</jmeterTestPlan>